package com.qfedu.smart_community.entity;

import java.io.Serializable;

/**
 * 
 * @TableName receivables_detail
 */
public class ReceivablesDetail implements Serializable {
    /**
     * 序号id
     */
    private Integer id;

    /**
     * 房间id
     */
    private Integer roomId;

    /**
     * 应收金额
     */
    private Double summation;

    /**
     * 缓交金额
     */
    private Double delayAmount;

    /**
     * 减免金额
     */
    private Double deductionAmount;

    /**
     * 违约金
     */
    private Double penaltyAmount;

    /**
     * 折扣率（优惠率%）
     */
    private Double couponRate;

    /**
     * 押金
     */
    private Double cashPledge;

    /**
     * 优惠金额
     */
    private Double coupon;

    /**
     * 预收金额
     */
    private Double receiveInAdvance;

    /**
     * 实收金额
     */
    private Double receivedAmount;

    /**
     * 收款方式  1:现金    2:微信     3:支付宝   4:银行卡  5预交金抵扣
     */
    private Integer payMode;

    /**
     * 零钱选项   0退补  1转预存
     */
    private Integer looseChangeOption;

    /**
     * 票据类型   0收据    1 发票
     */
    private Integer billType;

    /**
     * 打印票据  0否  1是
     */
    private Integer billPrint;

    private static final long serialVersionUID = 1L;

    /**
     * 序号id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 序号id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 房间id
     */
    public Integer getRoomId() {
        return roomId;
    }

    /**
     * 房间id
     */
    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    /**
     * 应收金额
     */
    public Double getSummation() {
        return summation;
    }

    /**
     * 应收金额
     */
    public void setSummation(Double summation) {
        this.summation = summation;
    }

    /**
     * 缓交金额
     */
    public Double getDelayAmount() {
        return delayAmount;
    }

    /**
     * 缓交金额
     */
    public void setDelayAmount(Double delayAmount) {
        this.delayAmount = delayAmount;
    }

    /**
     * 减免金额
     */
    public Double getDeductionAmount() {
        return deductionAmount;
    }

    /**
     * 减免金额
     */
    public void setDeductionAmount(Double deductionAmount) {
        this.deductionAmount = deductionAmount;
    }

    /**
     * 违约金
     */
    public Double getPenaltyAmount() {
        return penaltyAmount;
    }

    /**
     * 违约金
     */
    public void setPenaltyAmount(Double penaltyAmount) {
        this.penaltyAmount = penaltyAmount;
    }

    /**
     * 折扣率（优惠率%）
     */
    public Double getCouponRate() {
        return couponRate;
    }

    /**
     * 折扣率（优惠率%）
     */
    public void setCouponRate(Double couponRate) {
        this.couponRate = couponRate;
    }

    /**
     * 押金
     */
    public Double getCashPledge() {
        return cashPledge;
    }

    /**
     * 押金
     */
    public void setCashPledge(Double cashPledge) {
        this.cashPledge = cashPledge;
    }

    /**
     * 优惠金额
     */
    public Double getCoupon() {
        return coupon;
    }

    /**
     * 优惠金额
     */
    public void setCoupon(Double coupon) {
        this.coupon = coupon;
    }

    /**
     * 预收金额
     */
    public Double getReceiveInAdvance() {
        return receiveInAdvance;
    }

    /**
     * 预收金额
     */
    public void setReceiveInAdvance(Double receiveInAdvance) {
        this.receiveInAdvance = receiveInAdvance;
    }

    /**
     * 实收金额
     */
    public Double getReceivedAmount() {
        return receivedAmount;
    }

    /**
     * 实收金额
     */
    public void setReceivedAmount(Double receivedAmount) {
        this.receivedAmount = receivedAmount;
    }

    /**
     * 收款方式  1:现金    2:微信     3:支付宝   4:银行卡  5预交金抵扣
     */
    public Integer getPayMode() {
        return payMode;
    }

    /**
     * 收款方式  1:现金    2:微信     3:支付宝   4:银行卡  5预交金抵扣
     */
    public void setPayMode(Integer payMode) {
        this.payMode = payMode;
    }

    /**
     * 零钱选项   0退补  1转预存
     */
    public Integer getLooseChangeOption() {
        return looseChangeOption;
    }

    /**
     * 零钱选项   0退补  1转预存
     */
    public void setLooseChangeOption(Integer looseChangeOption) {
        this.looseChangeOption = looseChangeOption;
    }

    /**
     * 票据类型   0收据    1 发票
     */
    public Integer getBillType() {
        return billType;
    }

    /**
     * 票据类型   0收据    1 发票
     */
    public void setBillType(Integer billType) {
        this.billType = billType;
    }

    /**
     * 打印票据  0否  1是
     */
    public Integer getBillPrint() {
        return billPrint;
    }

    /**
     * 打印票据  0否  1是
     */
    public void setBillPrint(Integer billPrint) {
        this.billPrint = billPrint;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ReceivablesDetail other = (ReceivablesDetail) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getRoomId() == null ? other.getRoomId() == null : this.getRoomId().equals(other.getRoomId()))
            && (this.getSummation() == null ? other.getSummation() == null : this.getSummation().equals(other.getSummation()))
            && (this.getDelayAmount() == null ? other.getDelayAmount() == null : this.getDelayAmount().equals(other.getDelayAmount()))
            && (this.getDeductionAmount() == null ? other.getDeductionAmount() == null : this.getDeductionAmount().equals(other.getDeductionAmount()))
            && (this.getPenaltyAmount() == null ? other.getPenaltyAmount() == null : this.getPenaltyAmount().equals(other.getPenaltyAmount()))
            && (this.getCouponRate() == null ? other.getCouponRate() == null : this.getCouponRate().equals(other.getCouponRate()))
            && (this.getCashPledge() == null ? other.getCashPledge() == null : this.getCashPledge().equals(other.getCashPledge()))
            && (this.getCoupon() == null ? other.getCoupon() == null : this.getCoupon().equals(other.getCoupon()))
            && (this.getReceiveInAdvance() == null ? other.getReceiveInAdvance() == null : this.getReceiveInAdvance().equals(other.getReceiveInAdvance()))
            && (this.getReceivedAmount() == null ? other.getReceivedAmount() == null : this.getReceivedAmount().equals(other.getReceivedAmount()))
            && (this.getPayMode() == null ? other.getPayMode() == null : this.getPayMode().equals(other.getPayMode()))
            && (this.getLooseChangeOption() == null ? other.getLooseChangeOption() == null : this.getLooseChangeOption().equals(other.getLooseChangeOption()))
            && (this.getBillType() == null ? other.getBillType() == null : this.getBillType().equals(other.getBillType()))
            && (this.getBillPrint() == null ? other.getBillPrint() == null : this.getBillPrint().equals(other.getBillPrint()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getRoomId() == null) ? 0 : getRoomId().hashCode());
        result = prime * result + ((getSummation() == null) ? 0 : getSummation().hashCode());
        result = prime * result + ((getDelayAmount() == null) ? 0 : getDelayAmount().hashCode());
        result = prime * result + ((getDeductionAmount() == null) ? 0 : getDeductionAmount().hashCode());
        result = prime * result + ((getPenaltyAmount() == null) ? 0 : getPenaltyAmount().hashCode());
        result = prime * result + ((getCouponRate() == null) ? 0 : getCouponRate().hashCode());
        result = prime * result + ((getCashPledge() == null) ? 0 : getCashPledge().hashCode());
        result = prime * result + ((getCoupon() == null) ? 0 : getCoupon().hashCode());
        result = prime * result + ((getReceiveInAdvance() == null) ? 0 : getReceiveInAdvance().hashCode());
        result = prime * result + ((getReceivedAmount() == null) ? 0 : getReceivedAmount().hashCode());
        result = prime * result + ((getPayMode() == null) ? 0 : getPayMode().hashCode());
        result = prime * result + ((getLooseChangeOption() == null) ? 0 : getLooseChangeOption().hashCode());
        result = prime * result + ((getBillType() == null) ? 0 : getBillType().hashCode());
        result = prime * result + ((getBillPrint() == null) ? 0 : getBillPrint().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", roomId=").append(roomId);
        sb.append(", summation=").append(summation);
        sb.append(", delayAmount=").append(delayAmount);
        sb.append(", deductionAmount=").append(deductionAmount);
        sb.append(", penaltyAmount=").append(penaltyAmount);
        sb.append(", couponRate=").append(couponRate);
        sb.append(", cashPledge=").append(cashPledge);
        sb.append(", coupon=").append(coupon);
        sb.append(", receiveInAdvance=").append(receiveInAdvance);
        sb.append(", receivedAmount=").append(receivedAmount);
        sb.append(", payMode=").append(payMode);
        sb.append(", looseChangeOption=").append(looseChangeOption);
        sb.append(", billType=").append(billType);
        sb.append(", billPrint=").append(billPrint);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}